const BaseDto = require("./base.dto");

module.exports = {
    selectDto: {
        type: {
            required: true,
            comment: "类型",
        }
    },
    // 分页列表
    pageDto: {
        ...BaseDto.pageDto,
        keyword: {
            comment: "关键字搜索，cateName",
        },
        type: {
            required: true,
            comment: "类型",
        },
        status: {
            comment: "分类状态",
        },
    },
    // 创建
    createDto: {
        cateName: {
            required: true,
            comment: "分类名称",
        },
        type: {
            required: true,
            comment: "类型",
        },
        status: {
            comment: '状态'
        },
        sort: {
            comment: "排序",
        },
    },
    // 编辑
    editDto: {
        id: {
            required: true,
            comment: "分类ID",
        },
        cateName: {
            comment: "分类名称",
        },
        status: {
            comment: '状态'
        },
        sort: {
            comment: "排序",
        },
    },
    delDto: {
        id: {
            required: true,
            comment: "分类ID",
        },
    },
}